package com.myblog.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 此类表示 message 表对应的实体类
 */
@Data
public class Message {
    private int messageId;
    private int fromId;
    private int sessionId;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
